package com.xyg.sample.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.xyg.common.model.BaseEntity;

@Entity
@Table(name="course")
public class Course extends  BaseEntity<Course, Long>{
	@Column(length=25,unique=true)
	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Course(){}
	
	public Course(Long id) {
		super(id);
	}
	
	
}
